package com.dishdex.menuhub.console.util;

import com.dishdex.menuhub.console.domain.user.UserItemVO;
import com.dishdex.menuhub.module.module.user.entity.User;

/**
 * ClassName:
 * Package: com.dishdex.menuhub.console.util
 * Description:
 *
 * @Author:
 * @Create 2025/10/29 20:34
 * @Version 1.0
 */
public final class UserConverter {
    private UserConverter() {
    }

    public static UserItemVO toUserItemVO(User user) {
        return new UserItemVO()
                .setUserId(user.getId())
                .setAvatar(user.getAvatar())
                .setPhone(user.getPhone())
                .setPassword(user.getPassword())
                .setName(user.getName());
    }
}
